package com.opentae.data.mall.examples;

import com.opentae.core.mybatis.SgExample;
import com.opentae.core.mybatis.example.EntityColumn;
import com.opentae.core.mybatis.example.EntityTable;
import com.opentae.core.mybatis.mapperhelper.EntityHelper;
import com.opentae.data.mall.beans.GoatInfo;

import java.util.*;
public class GoatInfoExample extends SgExample<GoatInfoExample.Criteria> {
    public static final Class<GoatInfo> beanClass = GoatInfo.class;
    public static final EntityTable entityTable = EntityHelper.getEntityTable(beanClass);
    public static EntityColumn disEnabled;
    public static EntityColumn recommon;
    public static EntityColumn goatType;
    public static EntityColumn localCode;
    public static EntityColumn goatId;
    public static EntityColumn sort;
    public static EntityColumn localId;
    static {
        Set<EntityColumn> columns = entityTable.getEntityClassColumns();
        Map<String, EntityColumn> listMap = new HashMap<>();
        for (EntityColumn column : columns) {
            listMap.put(column.getProperty(), column);
        }
        disEnabled = listMap.get("disEnabled");
        recommon = listMap.get("recommon");
        goatType = listMap.get("goatType");
        localCode = listMap.get("localCode");
        goatId = listMap.get("goatId");
        sort = listMap.get("sort");
        localId = listMap.get("localId");
        }

    public GoatInfoExample() {
        this.setTableAlias(entityTable.getName());
    }

    @Override
    public EntityTable getEntityTable() {
        return entityTable;
    }

    @Override
    protected GoatInfoExample.Criteria createCriteriaInternal() {
        return new GoatInfoExample.Criteria(this);
    }

    public static class Criteria extends SgExample.GeneratedCriteria<Criteria> {
        protected Criteria(SgExample example) {
            super(example);
        }

        public GoatInfoExample.Criteria andDisEnabledIsNull() {
            return isNull(disEnabled);
        }

        public GoatInfoExample.Criteria andDisEnabledIsNotNull() {
            return isNotNull(disEnabled);
        }

        public GoatInfoExample.Criteria andDisEnabledEqualTo(Boolean value) {
            return equalTo(disEnabled, value);
        }

        public GoatInfoExample.Criteria andDisEnabledNotEqualTo(Boolean value) {
            return notEqualTo(disEnabled, value);
        }

        public GoatInfoExample.Criteria andDisEnabledGreaterThan(Boolean value) {
            return greaterThan(disEnabled, value);
        }

        public GoatInfoExample.Criteria andDisEnabledGreaterThanOrEqualTo(Boolean value) {
            return greaterThanOrEqualTo(disEnabled, value);
        }

        public GoatInfoExample.Criteria andDisEnabledLessThan(Boolean value) {
            return lessThan(disEnabled, value);
        }

        public GoatInfoExample.Criteria andDisEnabledLessThanOrEqualTo(Boolean value) {
            return lessThanOrEqualTo(disEnabled, value);
        }

        public GoatInfoExample.Criteria andDisEnabledIn(List<Boolean> values) {
            return in(disEnabled, values);
        }

        public GoatInfoExample.Criteria andDisEnabledNotIn(List<Boolean> values) {
            return notIn(disEnabled, values);
        }

        public GoatInfoExample.Criteria andDisEnabledBetween(Boolean value1, Boolean value2) {
            return between(disEnabled, value1, value2);
        }

        public GoatInfoExample.Criteria andDisEnabledNotBetween(Boolean value1, Boolean value2) {
            return notBetween(disEnabled, value1, value2);
        }
        public GoatInfoExample.Criteria andRecommonIsNull() {
            return isNull(recommon);
        }

        public GoatInfoExample.Criteria andRecommonIsNotNull() {
            return isNotNull(recommon);
        }

        public GoatInfoExample.Criteria andRecommonEqualTo(String value) {
            return equalTo(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonNotEqualTo(String value) {
            return notEqualTo(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonGreaterThan(String value) {
            return greaterThan(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonLessThan(String value) {
            return lessThan(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonLike(String value) {
            return like(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonNotLike(String value) {
            return notLike(recommon, value);
        }

        public GoatInfoExample.Criteria andRecommonIn(List<String> values) {
            return in(recommon, values);
        }

        public GoatInfoExample.Criteria andRecommonNotIn(List<String> values) {
            return notIn(recommon, values);
        }

        public GoatInfoExample.Criteria andRecommonBetween(String value1, String value2) {
            return between(recommon, value1, value2);
        }

        public GoatInfoExample.Criteria andRecommonNotBetween(String value1, String value2) {
            return notBetween(recommon, value1, value2);
        }
        public GoatInfoExample.Criteria andGoatTypeIsNull() {
            return isNull(goatType);
        }

        public GoatInfoExample.Criteria andGoatTypeIsNotNull() {
            return isNotNull(goatType);
        }

        public GoatInfoExample.Criteria andGoatTypeEqualTo(Integer value) {
            return equalTo(goatType, value);
        }

        public GoatInfoExample.Criteria andGoatTypeNotEqualTo(Integer value) {
            return notEqualTo(goatType, value);
        }

        public GoatInfoExample.Criteria andGoatTypeGreaterThan(Integer value) {
            return greaterThan(goatType, value);
        }

        public GoatInfoExample.Criteria andGoatTypeGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(goatType, value);
        }

        public GoatInfoExample.Criteria andGoatTypeLessThan(Integer value) {
            return lessThan(goatType, value);
        }

        public GoatInfoExample.Criteria andGoatTypeLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(goatType, value);
        }

        public GoatInfoExample.Criteria andGoatTypeIn(List<Integer> values) {
            return in(goatType, values);
        }

        public GoatInfoExample.Criteria andGoatTypeNotIn(List<Integer> values) {
            return notIn(goatType, values);
        }

        public GoatInfoExample.Criteria andGoatTypeBetween(Integer value1, Integer value2) {
            return between(goatType, value1, value2);
        }

        public GoatInfoExample.Criteria andGoatTypeNotBetween(Integer value1, Integer value2) {
            return notBetween(goatType, value1, value2);
        }
        public GoatInfoExample.Criteria andLocalCodeIsNull() {
            return isNull(localCode);
        }

        public GoatInfoExample.Criteria andLocalCodeIsNotNull() {
            return isNotNull(localCode);
        }

        public GoatInfoExample.Criteria andLocalCodeEqualTo(String value) {
            return equalTo(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeNotEqualTo(String value) {
            return notEqualTo(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeGreaterThan(String value) {
            return greaterThan(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeGreaterThanOrEqualTo(String value) {
            return greaterThanOrEqualTo(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeLessThan(String value) {
            return lessThan(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeLessThanOrEqualTo(String value) {
            return lessThanOrEqualTo(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeLike(String value) {
            return like(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeNotLike(String value) {
            return notLike(localCode, value);
        }

        public GoatInfoExample.Criteria andLocalCodeIn(List<String> values) {
            return in(localCode, values);
        }

        public GoatInfoExample.Criteria andLocalCodeNotIn(List<String> values) {
            return notIn(localCode, values);
        }

        public GoatInfoExample.Criteria andLocalCodeBetween(String value1, String value2) {
            return between(localCode, value1, value2);
        }

        public GoatInfoExample.Criteria andLocalCodeNotBetween(String value1, String value2) {
            return notBetween(localCode, value1, value2);
        }
        public GoatInfoExample.Criteria andGoatIdIsNull() {
            return isNull(goatId);
        }

        public GoatInfoExample.Criteria andGoatIdIsNotNull() {
            return isNotNull(goatId);
        }

        public GoatInfoExample.Criteria andGoatIdEqualTo(Long value) {
            return equalTo(goatId, value);
        }

        public GoatInfoExample.Criteria andGoatIdNotEqualTo(Long value) {
            return notEqualTo(goatId, value);
        }

        public GoatInfoExample.Criteria andGoatIdGreaterThan(Long value) {
            return greaterThan(goatId, value);
        }

        public GoatInfoExample.Criteria andGoatIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(goatId, value);
        }

        public GoatInfoExample.Criteria andGoatIdLessThan(Long value) {
            return lessThan(goatId, value);
        }

        public GoatInfoExample.Criteria andGoatIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(goatId, value);
        }

        public GoatInfoExample.Criteria andGoatIdIn(List<Long> values) {
            return in(goatId, values);
        }

        public GoatInfoExample.Criteria andGoatIdNotIn(List<Long> values) {
            return notIn(goatId, values);
        }

        public GoatInfoExample.Criteria andGoatIdBetween(Long value1, Long value2) {
            return between(goatId, value1, value2);
        }

        public GoatInfoExample.Criteria andGoatIdNotBetween(Long value1, Long value2) {
            return notBetween(goatId, value1, value2);
        }
        public GoatInfoExample.Criteria andSortIsNull() {
            return isNull(sort);
        }

        public GoatInfoExample.Criteria andSortIsNotNull() {
            return isNotNull(sort);
        }

        public GoatInfoExample.Criteria andSortEqualTo(Integer value) {
            return equalTo(sort, value);
        }

        public GoatInfoExample.Criteria andSortNotEqualTo(Integer value) {
            return notEqualTo(sort, value);
        }

        public GoatInfoExample.Criteria andSortGreaterThan(Integer value) {
            return greaterThan(sort, value);
        }

        public GoatInfoExample.Criteria andSortGreaterThanOrEqualTo(Integer value) {
            return greaterThanOrEqualTo(sort, value);
        }

        public GoatInfoExample.Criteria andSortLessThan(Integer value) {
            return lessThan(sort, value);
        }

        public GoatInfoExample.Criteria andSortLessThanOrEqualTo(Integer value) {
            return lessThanOrEqualTo(sort, value);
        }

        public GoatInfoExample.Criteria andSortIn(List<Integer> values) {
            return in(sort, values);
        }

        public GoatInfoExample.Criteria andSortNotIn(List<Integer> values) {
            return notIn(sort, values);
        }

        public GoatInfoExample.Criteria andSortBetween(Integer value1, Integer value2) {
            return between(sort, value1, value2);
        }

        public GoatInfoExample.Criteria andSortNotBetween(Integer value1, Integer value2) {
            return notBetween(sort, value1, value2);
        }
        public GoatInfoExample.Criteria andLocalIdIsNull() {
            return isNull(localId);
        }

        public GoatInfoExample.Criteria andLocalIdIsNotNull() {
            return isNotNull(localId);
        }

        public GoatInfoExample.Criteria andLocalIdEqualTo(Long value) {
            return equalTo(localId, value);
        }

        public GoatInfoExample.Criteria andLocalIdNotEqualTo(Long value) {
            return notEqualTo(localId, value);
        }

        public GoatInfoExample.Criteria andLocalIdGreaterThan(Long value) {
            return greaterThan(localId, value);
        }

        public GoatInfoExample.Criteria andLocalIdGreaterThanOrEqualTo(Long value) {
            return greaterThanOrEqualTo(localId, value);
        }

        public GoatInfoExample.Criteria andLocalIdLessThan(Long value) {
            return lessThan(localId, value);
        }

        public GoatInfoExample.Criteria andLocalIdLessThanOrEqualTo(Long value) {
            return lessThanOrEqualTo(localId, value);
        }

        public GoatInfoExample.Criteria andLocalIdIn(List<Long> values) {
            return in(localId, values);
        }

        public GoatInfoExample.Criteria andLocalIdNotIn(List<Long> values) {
            return notIn(localId, values);
        }

        public GoatInfoExample.Criteria andLocalIdBetween(Long value1, Long value2) {
            return between(localId, value1, value2);
        }

        public GoatInfoExample.Criteria andLocalIdNotBetween(Long value1, Long value2) {
            return notBetween(localId, value1, value2);
        }
    }
}
